class UpdateBean {
  String version;
  String title;
  String descript;
  String forceDesc;
  String acceptDesc;
  String rejectDesc;
  String downloadUrl;
  int needUpgrade;
  int force;

  UpdateBean({this.version, this.title, this.descript, this.forceDesc, this.acceptDesc, this.rejectDesc, this.downloadUrl, this.needUpgrade, this.force});

  UpdateBean.fromJson(Map<String, dynamic> json) {    
    this.version = json['version'];
    this.title = json['title'];
    this.descript = json['descript'];
    this.forceDesc = json['force_desc'];
    this.acceptDesc = json['accept_desc'];
    this.rejectDesc = json['reject_desc'];
    this.downloadUrl = json['download_url'];
    this.needUpgrade = json['need_upgrade'];
    this.force = json['force'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['version'] = this.version;
    data['title'] = this.title;
    data['descript'] = this.descript;
    data['force_desc'] = this.forceDesc;
    data['accept_desc'] = this.acceptDesc;
    data['reject_desc'] = this.rejectDesc;
    data['download_url'] = this.downloadUrl;
    data['need_upgrade'] = this.needUpgrade;
    data['force'] = this.force;
    return data;
  }
}
